package strategy.duckSimulator;

import strategy.duckSimulator.ducks.ModelDuck;
import strategy.duckSimulator.ducks.base.Duck;
import strategy.duckSimulator.fly.impl.FlyWithRocket;
import strategy.duckSimulator.quack.impl.QuackWithSpeaker;

public class DuckSimulatorDemo {
    public static void main(String[] args) {

        Duck model = new ModelDuck();

        model.performFly();
        model.performQuack();

        System.out.println("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<");

        model.setFlyBehavior(new FlyWithRocket());
        model.setQuackBehavior(new QuackWithSpeaker());

        model.performFly();
        model.performQuack();

    }
}
